package com.huawei.zyb.taskManager.application.service.dto;

import java.time.LocalDateTime;

/**
 * 参考文档DTO
 */
public class ReferenceDocumentDTO {
    
    private String documentId;
    private String requirementId;
    private String title;
    private String url;
    private String description;
    private String type;
    private String uploader;
    private int viewCount;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    
    // 构造函数
    public ReferenceDocumentDTO() {}
    
    public ReferenceDocumentDTO(String documentId, String requirementId, String title, String url, String description,
                               String type, String uploader, int viewCount, LocalDateTime createdAt, LocalDateTime updatedAt) {
        this.documentId = documentId;
        this.requirementId = requirementId;
        this.title = title;
        this.url = url;
        this.description = description;
        this.type = type;
        this.uploader = uploader;
        this.viewCount = viewCount;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
    }
    
    // Getter和Setter方法
    public String getDocumentId() {
        return documentId;
    }
    
    public void setDocumentId(String documentId) {
        this.documentId = documentId;
    }
    
    public String getRequirementId() {
        return requirementId;
    }
    
    public void setRequirementId(String requirementId) {
        this.requirementId = requirementId;
    }
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getUrl() {
        return url;
    }
    
    public void setUrl(String url) {
        this.url = url;
    }
    
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getType() {
        return type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    public String getUploader() {
        return uploader;
    }
    
    public void setUploader(String uploader) {
        this.uploader = uploader;
    }
    
    public int getViewCount() {
        return viewCount;
    }
    
    public void setViewCount(int viewCount) {
        this.viewCount = viewCount;
    }
    
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }
    
    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }
    
    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }
    
    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }
    
    @Override
    public String toString() {
        return "ReferenceDocumentDTO{" +
                "documentId='" + documentId + '\'' +
                ", requirementId='" + requirementId + '\'' +
                ", title='" + title + '\'' +
                ", url='" + url + '\'' +
                ", description='" + description + '\'' +
                ", type='" + type + '\'' +
                ", uploader='" + uploader + '\'' +
                ", viewCount=" + viewCount +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                '}';
    }
}